// 质量管理
import httpAPI from '../../utils/http.js'

export default {
  /**
   * 查询测量类型列表
   */
  getMassType() {
    return httpAPI.get('system/quality/mt/category')
  },
  /**
   * 测量任务列表
   */
  getMassList(projectId, params) {
    return httpAPI.get(`system/quality/mt/${projectId}/list`, params)
  },
  /**
   * 测量任务详情
   * @param {Object} measureTaskId 测量id
   */
  getMassDetails(measureTaskId) {
    return httpAPI.get(`system/quality/mt/${measureTaskId}`)
  },
  /**
   * 质量管理统计
   * @param {Object} projectId 项目id
   */
  MassStatistical(projectId) {
    return httpAPI.get(`system/quality/mt/${projectId}/webReport`)
  },
  addMassData(params, projectId) {
    return httpAPI.post(`system/quality/mt/${projectId}/save`, params)
  }
}
